package com.showshopping.entity;
/**
 * 用户信息实体类
 * @author hfj
 * @version 1.0 2017-11-08
 *
 */
public class UserInfoEntity {
	

	/**
	 * 用户信息id
	 */
	private int userInfoId;
	/**
	 * 用户登录id
	 */
	private int userId;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 性别
	 */
	private int sex;
	/**
	 * 出生日期
	 */
	private String birth;
	/**
	 * 身份证
	 */
	private String idCode;
	/**
	 * 邮箱
	 */
	private String eamil;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 手机
	 */
	private int phone;
	
	/**
	 * 一对一
	 */
	private LoginInfoEntity loginInfoEntity;

	/**
	 * 获取用户信息id
	 * @return
	 */
	public int getUserInfoId() {
		return userInfoId;
	}

	/**
	 * 设置用户信息id
	 * @param userInfoId
	 */
	public void setUserInfoId(int userInfoId) {
		this.userInfoId = userInfoId;
	}

	/**
	 * 获取用户登录id
	 * @return
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * 设置用户登录id
	 * @param userId
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * 获取用户名
	 * @return
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置用户名
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 获取用户真实姓名
	 * @return
	 */
	public String getRealName() {
		return realName;
	}

	/**
	 * 设置用户真实姓名
	 * @param realName
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * 获取用户性别
	 * @return
	 */
	public int getSex() {
		return sex;
	}

	/**
	 * 设置用户性别
	 * @param sex
	 */
	public void setSex(int sex) {
		this.sex = sex;
	}

	/**
	 * 获取用户出生日期
	 * @return
	 */
	public String getBirth() {
		return birth;
	}
	/**
	 * 设置用户出生日期
	 * @param birth
	 */

	public void setBirth(String birth) {
		this.birth = birth;
	}
   /**
    * 获取身份证号
    * @return
    */
	public String getIdCode() {
		return idCode;
	}

	/**
	 * 设置身份证号
	 * @param idCode
	 */
	public void setIdCode(String idCode) {
		this.idCode = idCode;
	}

	/**
	 * 获取邮箱邮箱
	 * @return
	 */
	public String getEamil() {
		return eamil;
	}

	/**
	 * 设置邮箱
	 * @param eamil
	 */
	public void setEamil(String eamil) {
		this.eamil = eamil;
	}

	/**
	 * 获取地址
	 * @return
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * 设置地址
	 * @param address
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * 获取电话号码
	 * @return
	 */
	public int getPhone() {
		return phone;
	}
	/**
	 * 设置电话号码
	 * @param phone
	 */

	public void setPhone(int phone) {
		this.phone = phone;
	}

	/**
	 * 获取一对一的登录信息
	 * @return
	 */
	public LoginInfoEntity getLoginInfoEntity() {
		return loginInfoEntity;
	}

	/**
	 * 设置一对一的登录信息
	 * @param loginInfoEntity
	 */
	public void setLoginInfoEntity(LoginInfoEntity loginInfoEntity) {
		this.loginInfoEntity = loginInfoEntity;
	}
	
	/**
	 * 无参构造函数
	 */
	public UserInfoEntity(	) {
		
	}
	
	
	/**
	 * 有参构造函数
	 * @param userInfoId
	 * @param userId
	 * @param userName
	 * @param realName
	 * @param sex
	 * @param birth
	 * @param idCode
	 * @param eamil
	 * @param address
	 * @param phone
	 * @param loginInfoEntity
	 */
	public UserInfoEntity(int userInfoId, int userId, String userName, String realName, int sex, String birth,
			String idCode, String eamil, String address, int phone, LoginInfoEntity loginInfoEntity) {
		super();
		this.userInfoId = userInfoId;
		this.userId = userId;
		this.userName = userName;
		this.realName = realName;
		this.sex = sex;
		this.birth = birth;
		this.idCode = idCode;
		this.eamil = eamil;
		this.address = address;
		this.phone = phone;
		this.loginInfoEntity = loginInfoEntity;
	}

	
	/**
	 * 重写toString()
	 */
	@Override
	public String toString() {
		return "UserInfoEntity [userInfoId=" + userInfoId + ", userId=" + userId + ", userName=" + userName
				+ ", realName=" + realName + ", sex=" + sex + ", birth=" + birth + ", idCode=" + idCode + ", eamil="
				+ eamil + ", address=" + address + ", phone=" + phone + ", loginInfoEntity=" + loginInfoEntity + "]";
	}

}
